import { useTranslation } from 'react-i18next'
const useI18n = (val: string) => {
  const [t] = useTranslation()
  return t(val)
}

export default useI18n
